package com.vf.admin.utils.ip;

import com.vf.admin.common.entity.Result;
import com.vf.admin.common.redis.RedisUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/9/18 17:53
 */
@Controller
@RequestMapping("/ip")
public class IpController {


    @Resource
    private RedisUtil redisUtil;


    @RequestMapping("/test")
    public void test() {
        Map<String, Object> ipList = (Map<String, Object>) redisUtil.get("ip");

        System.out.println(ipList);

    }
}
